package tool

type Student struct {
	Name string
	Id   int
	Age  int
}
type Students []*Student

func (s Students) Len() int {
	//TODO implement me
	return len(s)
}

func (s Students) Less(i, j int) bool {
	//TODO implement me
	if s[i].Id != s[j].Id {
		return s[i].Id < s[j].Id
	}

	return s[i].Age < s[j].Age
}

func (s Students) Swap(i, j int) {
	//TODO implement me
	s[i], s[j] = s[j], s[i]
}
